﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace UI.Web.SL.Demo.SysAdmin.Controls
{
    public partial class HeadBtn : UserControl
    {
        public HeadBtn()
        {
            InitializeComponent();
        }
        //public static readonly DependencyProperty MenuNameProperty = DependencyProperty.Register("MenuName", typeof(string), typeof(HeadBtn), null);
        //public String MenuName
        //{
        //    get { return (String)GetValue(MenuNameProperty); }
        //    set { SetValue(MenuNameProperty, value); }
        //}
        private void UserControl_MouseEnter(object sender, MouseEventArgs e)
        {
            var color = Color.FromArgb(255,180, 180, 180);
            btn.Background = new SolidColorBrush(color);
        }
        private void UserControl_MouseLeave(object sender, MouseEventArgs e)
        {
            btn.Background = new SolidColorBrush(Colors.Transparent);
        }
    }
}
